package com.llcbenwu.mode;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 第三方信息存放表
 * </p>
 *
 * @author llc
 * @since 2021-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LlcUserconnection对象", description="第三方信息存放表")
public class LlcUserconnection implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "业务系统的id")
    @TableId(value = "userId", type = IdType.ASSIGN_ID)
    private String userId;

    @ApiModelProperty(value = "服务提供商的id（QQ或者微信的id）")
    @TableField("providerId")
    private String providerId;

    @ApiModelProperty(value = "openID")
    @TableField("providerUserId")
    private String providerUserId;

    @ApiModelProperty(value = "等级")
    private Integer rank;

    @TableField("displayName")
    private String displayName;

    @TableField("profileUrl")
    private String profileUrl;

    @TableField("imageUrl")
    private String imageUrl;

    @ApiModelProperty(value = "令牌存储位置")
    @TableField("accessToken")
    private String accessToken;

    private String secret;

    @TableField("refreshToken")
    private String refreshToken;

    @TableField("expireTime")
    private Long expireTime;


}
